/* 初始化样式 */
body {
    min-width: 320px;
    max-width: 540px;
    margin: 0 auto;
    font: 400 16px/1.5 PingFangSC-regular,Tahoma,"Lucida Grande",Verdana,"Microsoft Yahei",STXihei,hei;
    background: #fafafc;
    overflow-x: hidden;
}

ul,li {
    list-style: none;
    padding: 0;
    margin: 0;
}
a {
    text-decoration: none;
    color: #2f2f2f;
}
h1,h2,h3,h4,h5 {
    margin: 0;
    padding: 0;
}
/* 点击高亮需要清除，设置为transparent变成透明 */
*{
    -webkit-tap-highlight-color: transparent;
}
/* 在移动端浏览器默认的外观在IOS上加上这个属性才能给按钮和输入框自定义样式 */
input{
    -webkit-appearance: none;
}
/* 禁用长按页面时的弹出菜单 */
img,a{-webkit-touch-callout: none;}

/* search-index */
.search-index {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: 44px;
    padding-left: 12px;
    box-sizing: border-box;
    align-items: center;
    z-index: 99;
}
.search-index .search {
    display: flex;
    align-items: center;
    flex: 1;
    height: 28px;
    padding: 2px 5px;
    border-radius: 16px;
    box-sizing: border-box;
    background-color: white;
}
.search-index .search span {
    position: relative;
    padding-left: 35px;
    line-height: 18px;
    color: #666;
}
.search-index .search span::after {
    content: "";
    display: block;
    position: absolute;
    width: 14px;
    height: 14px;
    left: 10.5px;
    top: 2px;
    background: url(../images/sprite.png) no-repeat 0px 0px;
    background-size: 21px;
}
.search-index .login {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* 经典flex：1.主轴为Y 2.侧轴设置为居中对齐 */
    width: 51px;
    height: 44px;
    padding-right: 4px;
}
.search-index .login::before {
    content: "";
    display: block;
    width: 22px;
    height: 22px;
    background: url(../images/sprite.png) no-repeat 0 -36px;
    background-size: 21px;
}
.search-index .login span {
    font-size: 12px;
    color: #fff;
    line-height: 12px;
}
/* bannner */
.focus {
    position: relative;
    width: 100% ;
    padding: 0 25%;
    border-bottom-left-radius: 100%;
    border-bottom-right-radius: 100%;
    transform: translateX(-16.6666%);
    overflow: hidden;
  }
.focus::after {
    position: absolute;
    left: 0;
    top: 0;
    content: "";
    width: 100%;
    height: 60px;
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0));
}
.focus a {
    display: block;
}
.focus a img {
    display: block;
    width: 100%;
}
/* local-nav 部分 */
.local-nav {
    display: flex;
    position: relative;
    height: 64px;
    padding: 4px 0 8px;
    margin: -52px 12px 10px;
    border-radius: 8px;
    background-color: #fff;
    font-size: 12px;
}
.local-nav li {
    flex: 1;
}
.local-nav li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.local-nav li a i {
    width: 40px;
    height: 40px;
    background: url(../images/localnav_bg.png) no-repeat 0 0;
    background-size: 40px;
}
.local-nav li:nth-child(2) a i {
    background-position: 0 -40px;
}
.local-nav li:nth-child(3) a i {
    background-position: 0 -80px;
}
.local-nav li:nth-child(4) a i {
    background-position: 0 -120px;
}
.local-nav li:nth-child(5) a i {
    background-position: 0 -160px;
}
/* 主nav */
.nav {
    margin: 0 12px 1px 12px;
    border-radius: 8px;
    overflow: hidden;
}
.nav .common {
    display: flex;
    background-image: linear-gradient(to right, #4b91ed, #53bbed);
}
.nav .common a {
    padding:25.6px 0;
    border-bottom: 1px solid #fff;
    font-size: 14px;
    line-height: 13.6px;
    color: #e9f3fd;
}
.nav .common a:nth-child(1){
    padding-left: 12px;
    flex: 1.35;
    background: url(../images/flight.png) no-repeat right bottom;
    background-size: auto 34px;
}
.nav .common a:nth-child(2) {
    background: url(../images/train.png) no-repeat  left bottom;
    background-size: auto 34px;
}
.nav .common a:nth-child(n+2){
    flex: 1;
    text-align: center;
    border-left: 1px solid #fff;
}
/* 特殊样式1 */
.nav .common:nth-child(1) {
    background-image: linear-gradient(to right,#fa5a56,#fb8550 56%);
}
.nav .common:nth-child(1) a:nth-child(3) {
    flex: 2;
    background-image: url(../images/hot_sale.png),linear-gradient(to right,#ffbc49,#ffd252);
    background-size: 241px;
    background-position: right bottom;
    color: #A05416;
  }
.nav :nth-child(1) a:nth-child(1){
    background: url(../images/hotel.png) no-repeat right bottom;
    background-size: auto 34px;
}
.nav :nth-child(1) a:nth-child(2){
    background: url(../images/minsu.png) no-repeat left bottom;
    background-size: auto 34px;
}
/* 特殊样式3 */
.nav .common:nth-child(3){
    background-image: linear-gradient(to right,#34C2AA,#6CD558);
}
.nav .common:nth-child(3) a:nth-child(1){
    background: url(../images/travel.png) no-repeat right bottom;
    background-size: auto 34px;
}
.nav .common:nth-child(3) a:nth-child(2){
    background: url(../images/dingzhi.png) no-repeat left bottom;
    background-size: auto 34px;
}

/* subnav  */
.subnav {
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    margin: 12px;
    margin-top: 0;
}
.subnav li {
    width: 20%;
}
.subnav a {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.subnav a i {
    width: 28px;
    height: 28px;
    margin: 10px 0 5px;
    background: url(../images/subnav-bg.png) no-repeat 6px -137px;
    background-size: 24px auto;
}
.subnav a span {
    line-height: 12px;
}
/*sale-box*/
.sale-box{
    border-top: 1px solid#DBDBDB;
}
.sale-box .sale-hd {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 45px;
    padding: 0 12px 0;
    border-bottom: 1px solid#DBDBDB;
    background-color: #fff;
}
.sale-box .sale-hd h2 {
    position: relative;
    width: 79px;
    height: 15px;
    background: url(../images/hot.png) no-repeat 0 -20px;
    background-size: 79px;
}
.sale-box .sale-hd h2 i {
    position: absolute;
    top: 0;
    right: -40px;
    width: 36px;
    height: 15px;
    background: url(../images/icon-gg@2x.png) no-repeat;
    background-size: 36px;
}
.sale-box .sale-hd a {
    position: relative;
    height: 20px;
    padding: 0 18px 0 12px;
    border-radius: 10px;
    background-image: linear-gradient(to right,#dc5569,#e068c4);
    font-size: 12px;
    color: #fff;
}
.sale-box .sale-hd a::after {
    position: absolute;
    right: 9px;
    top: 5px;
    content: "";
    display: block;
    width: 7px;
    height: 7px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
  }
.sale-box .sale-bd{
    display: flex;
}
.sale-box .sale-bd a {
    flex: 1;
    position: relative;
    border-bottom: 1px #DBDBDB solid;
}
.sale-box .sale-bd a:nth-child(1){
    border-right: 1px solid #DBDBDB;
}
.sale-box .sale-bd a img {
    max-width: 100%;
}
.sale-box .sale-bd a span {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    border-radius: 4px;
    background-color: gray;
    color: #fff;
    font-size: 12px;
}
/* service */
.service {
    display: flex;
}
.service a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
}
.service a svg {
    width: 20px;
    height: 20px;
}
/* footer-nav */
.footer-nav {
    text-align: center;
}
.footer-nav a {
    position: relative;
    font-size: 12px;
}
.footer-nav .arrow {
    display: inline-block;
    position: relative;
    bottom: 2px;
    width: 5px;
    height: 5px;
    border-bottom:1px #666 solid ;
    border-right:1px #666 solid ;
    transform: rotate(45deg);
}
.footer-nav .globe {
    width: 11px;
    height: 11px;
    margin-right: 7px;
}
footer {
    font-size: 12px;
    text-align: center;
}